<template>
  <div class="div">
    <div class="content">
      <router-view></router-view>
    </div>
    <footer>
      <router-link tag="div" to="/" exact>
        <img src="/static/img/may_16.png" alt="">
        <span>菜谱</span>
      </router-link>
      <router-link tag="div" to="/topic" exact>
        <img src="/static/img/may_17.png" alt="">
        <span>话题</span>
      </router-link>
      <router-link tag="div" to="/focusOn" exact>
        <img src="/static/img/may_18.png" alt="">
        <span>关注</span>
      </router-link>
      <router-link tag="div" to="/my" exact>
        <img src="/static/img/may_19.png" alt="">
        <span>我的</span>
      </router-link>
    </footer>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss">
.div {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  .content {
    overflow: hidden;
    flex: 1;
    font-size: 0.8rem;
  }

  footer {
    display: flex;
    height: 3rem;
    justify-content: space-around;
    align-items: center;
    font-size: 0.8rem;
    > .router-link-active {
      > span {
        color: #ff6767;
      }
    }
    > div {
      flex-grow: 1;
      text-align: center;
      &:hover {
        > span {
          color: #ff6767;
        }
      }
      > img {
        width: 30%;
      }
      > span {
        display: block;
        color: #979797;
        font-size: 12px;
      }
    }
  }
}
</style>
